#include<stdio.h>
int main()
{
	int week=0;
	scanf("%d",&week);
	if(week==1 || week==3 || week==5)
	printf("NO");
	else
	printf("YES");
	
	return 0;
 } 
